import request from '../utils/request'

export function login(data) {
    return request.post('/admin/login', data)
}

export function getCategorylist() {
    return request.get('/admin/category/list')
}

export function getCategory(params) {
    return request.get('/admin/category', { params })
}

export function addCategory(data) {
    return request.post('/admin/category/add', data)
}

export function updateCategory(data) {
    return request.post('/admin/category/save', data)
}

export function delCategory(data) {
    return request.post('/admin/category/del', data)
}